package com.starlink;

import cn.xuyanwu.spring.file.storage.EnableFileStorage;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

import java.text.MessageFormat;

/**
 * 启动入口
 */
@Slf4j
@EnableFileStorage
@SpringBootApplication(scanBasePackages = {"com.starlink"})
@EnableTransactionManagement
@EnableScheduling
@EnableSwagger2
@MapperScan("com.starlink.mapper")
public class Application {

	public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
        log.info(MessageFormat.format("see doc: http://localhost:{0}/{1}/doc.html#/home", "8082", "starlink"));
	}
}
